{% extends 'mathtesthome.html' %}
{% block body %}
<div class="main-content container">


    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading panel-heading-divider">{{title}}<span
                        class="panel-subtitle">{%if score%} 本次测试得分: {{score}}{%endif%}</span>
                </div>


                <div class="panel-body pl-sm-5">
                    <label class="col-12 col-sm-2 col-form-label text-sm-right">测试时间</label>
                    <label class="col-12 col-sm-2 col-form-label text-sm-right">得分</label>
                    <label class="col-12 col-sm-2 col-form-label text-sm-right">用时</label>

                      {%for test in object_list%}
                             {% if test.choose_set.all %}
                           <div class="form-group row">
                               <label class="col-12 col-sm-2 col-form-label text-sm-right"><a
                                       href="{% url 'mathtest:OUtestdetail' test.id %}">{{test}}</a></label>

                               <label class="col-12 col-sm-2 col-form-label text-sm-right">{{test.score}}</label>
                               <label class="col-12 col-sm-2 col-form-label text-sm-right">{{test.complete_time}}</label>
                               <label class="col-12 col-sm-1 col-form-label text-sm-right"><a
                                       href="{% url 'mathtest:OUtestdetail' test.id %}">详情</a></label>
                               <label class="col-12 col-sm-1 col-form-label text-sm-right"><a
                                       href="{% url 'mathtest:redotestwrong' test.id %}">重做错题</a></label>

                               <div class="col-12 col-sm-8 col-lg-6 form-check mt-2">

                               </div>

                           </div>
                    {%endif%}
                        {%endfor%}





                </div>

            </div>
        </div>
    </div>
</div>

{% endblock %}